package e2q.portal.domain.uPortal;

import javax.persistence.Column;

/**
 * UpUserParamId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class UpUserParamId implements java.io.Serializable {

	// Fields

	@Column(name = "USER_ID")
	private Integer userId;
	@Column(name = "USER_PARAM_NAME")
	private String userParamName;

	// Constructors

	/** default constructor */
	public UpUserParamId() {
	}

	/** full constructor */
	public UpUserParamId(Integer userId, String userParamName) {
		this.userId = userId;
		this.userParamName = userParamName;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserParamName() {
		return this.userParamName;
	}

	public void setUserParamName(String userParamName) {
		this.userParamName = userParamName;
	}

	@Override
	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UpUserParamId))
			return false;
		UpUserParamId castOther = (UpUserParamId) other;

		return ((this.getUserId() == castOther.getUserId()) || (this
				.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getUserParamName() == castOther.getUserParamName()) || (this
						.getUserParamName() != null
						&& castOther.getUserParamName() != null && this
						.getUserParamName()
						.equals(castOther.getUserParamName())));
	}

	@Override
	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37
				* result
				+ (getUserParamName() == null ? 0 : this.getUserParamName()
						.hashCode());
		return result;
	}

}